/*
 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_BASE_COMPONENT_H
#define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_BASE_COMPONENT_H

#include <array>
#include <list>
#include <map>
#include <memory>
#include <utility>

#include "base/memory/ace_type.h"
#include "base/memory/referenced.h"
#include "core/animation/property_animation.h"
#include "core/components/common/layout/constants.h"
#include "core/components_v2/extensions/events/event_extensions.h"
#include "core/event/ace_event_handler.h"
#include "core/pipeline/base/element_register.h"

namespace Keels::Ace {

enum class UpdateType {
    STYLE,
    ATTR,
    EVENT,
    METHOD,
    REBUILD,
    ALL,
};

enum class UpdateRenderType : uint32_t { NONE = 0, LAYOUT = 1, PAINT = 1 << 1, EVENT = 1 << 2 };

enum class HoverAnimationType : int32_t {
    NONE,
    OPACITY,
    SCALE,
    BOARD,
    AUTO,
    UNKNOWN,
};

} // namespace Keels::Ace

#endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_BASE_COMPONENT_H
